package thinking

object First {
  def main(args: Array[String]): Unit = {

    val value = 1 :: 2 :: 3 :: Nil
    println(value)

    var jetSet = Set("Boeing", "Airbus")
    jetSet += "Lear"
    println(jetSet.contains("Boeing"))

    val romanNumeral = Map(1 -> "I", 2 -> "II",
      3 -> "III", 4 -> "IV", 5 -> "V")
    println(romanNumeral(4))

    //函数式思想
    def printArgs(args: Array[String]): Unit = {
      args.foreach(println)
    }

    printArgs(Array("ff", "dasd", "daasd"))
  }

}
